﻿using System;
using System.Collections.Generic;
using System.Text;

namespace AdaptiveAgents.Tools
{
    class FullRecord
    {
        private double[] m_dFullRecord;

        public FullRecord(Record rec, double[] vec, int index)
        {
            double sum = rec.getNumOfTurnsPlayed(0)+rec.getNumOfTurnsPlayed(1)+rec.getNumOfTurnsPlayed(2);
            m_dFullRecord = new double[16];

            m_dFullRecord[0] = vec[0];
            m_dFullRecord[1] = vec[1];
            m_dFullRecord[2] = vec[2];

            m_dFullRecord[3] = rec.getNumOfTurnsPlayed(0) / sum;
            m_dFullRecord[4] = rec.getNumOfTurnsPlayed(1) / sum;
            m_dFullRecord[5] = rec.getNumOfTurnsPlayed(2) / sum;

            m_dFullRecord[6] = rec.getNumOfTurnsPlayed(0);
            m_dFullRecord[7] = rec.getNumOfTurnsPlayed(1);
            m_dFullRecord[8] = rec.getNumOfTurnsPlayed(2);

            m_dFullRecord[9] = rec.getEpsilon(0);
            m_dFullRecord[10] = rec.getEpsilon(1);
            m_dFullRecord[11] = rec.getEpsilon(2);

            m_dFullRecord[12] = rec.getCompetence(0);
            m_dFullRecord[13] = rec.getCompetence(1);
            m_dFullRecord[14] = rec.getCompetence(2);

            m_dFullRecord[15] = index;
        }

        public double[] getFullRecord()
        {
            return m_dFullRecord;
        }

    }
}
